package com.kgm.service;

import com.spring.Autowired;
import com.spring.Component;

@Component(name = "userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private OrderService orderService;

    private String beanName;

    @Override
    public String getBeanName() {
        return this.beanName;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    @Override
    public void showOrderService() {
        System.out.println(orderService);
    }
}
